package com.myx.typhoon.web.bussiness.domian.result;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

/**  
 * @author myx
 * @createTime 2015年9月18日 上午11:44:14  
 * 
 */
public class RequestPageVo<T> implements Serializable{
	
	private static final long serialVersionUID = -8976077658413288983L;
	
	private int draw=0;					//请求次数
	private int length = 10;			//数据长度
	private int start = 0;				//数据起始位置
	protected long recordsTotal = 0;	//总记录数
	protected long recordsFiltered = 0; //过滤后记录数
	
	//-- 返回结果 --//
	protected List<T> data = Collections.emptyList();

	public int getDraw() {
		return draw;
	}

	public void setDraw(int draw) {
		this.draw = draw;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public long getRecordsTotal() {
		return recordsTotal;
	}

	public void setRecordsTotal(long recordsTotal) {
		this.recordsTotal = recordsTotal;
	}

	public long getRecordsFiltered() {
		return recordsFiltered;
	}

	public void setRecordsFiltered(long recordsFiltered) {
		this.recordsFiltered = recordsFiltered;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}
}
